/*
 * redmicro all Copyright (c)
 */

/**
 * Created by seeker910 on 2015/5/30. 没有用
 */
Rsd.define('Rsd.Faith.pages.BankZengZhiShiYongListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: ['Rsd.Faith.controls.SuoShuQiInput'],
    xtype: 'list-jibenhu',
    border: false,
    tabTitle: '增值支出',
    modelType:'BankZengZhiShiYongModel',
    sort:[{name:'RiQi',direction:'desc'}],
    titleField:'ShiYongShuoMing',
    formTitle:'增值支出',
    searchColumns:[
        {name:'SuoShuQi',text:'所属期',xtype:'ctrl-suoshuqi'},
        {name:'YinHangBianHao',text:'银行账号'}
    ],
    "formFields": [
        {
            "name": "SuoShuQi",
            "label": {
                "text": "所属周期",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "ShiYongJinE",
            "label": {
                "text": "金额",
                "width": 80
            },
            "xtype": "number",
            "precision": 2
        },

        {
            "name": "ShiYongShuoMing",
            "label": {
                "text": "使用说明",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "RiQi",
            "label": {
                "text": "记账日期",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "YinHangMingCheng",
            "label": {
                "text": "支出银行名称",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "YinHangZhangHao",
            "label": {
                "text": "支出银行账号",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "ZhuangTai",
            "label": {
                "text": "状态",
                "width": 80
            },
            "xtype": "combobox-enum",
            "enum": "Rsd.Faith.Core.ZengZhiShiYongZhuangTai"
        },
        {
            "name": "Remark",
            "label": {
                "text": "备注",
                "width": 80
            },
            "xtype": "text"
        }
    ],
    "gridColumns": [
        {
            "text": "序号",
            "xtype": "index",
            "width": 40,
            "index": 0
        },
        {
            "name": "SuoShuQi",
            "dataIndex": "SuoShuQi",
            "sortable": false,
            "text": "所属期",
            align:'center',
            "index": 24,
            "exist": true,
            "xtype": "string",
            "width": 100,
            "nobr": true
        },

        {
            "name": "ShiYongJinE",
            "dataIndex": "ShiYongJinE",
            "sortable": false,
            "text": "使用金额",
            "index": 28,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 2
        },
        {
            "name": "ShiYongShuoMing",
            "dataIndex": "ShiYongShuoMing",
            "sortable": false,
            "text": "使用说明",
            "index": 30,
            "exist": true,
            "xtype": "string",
            "width": 200,
            "nobr": true
        },
        {
            "name": "RiQi",
            "dataIndex": "RiQi",
            "sortable": false,
            "text": "记账日期",
            "index": 26,
            "exist": true,
            "xtype": "string",
            "width": 100,
            "nobr": true
        },
        {
            "name": "YinHangMingCheng",
            "dataIndex": "YinHangMingCheng",
            "sortable": false,
            "text": "支出银行名称",
            "index": 20,
            "exist": true,
            "xtype": "string",
            "width": 120,
            "nobr": true
        },
        {
            "name": "YinHangZhangHao",
            "dataIndex": "YinHangZhangHao",
            "sortable": false,
            "text": "支出银行账号",
            "index": 22,
            "exist": true,
            "xtype": "string",
            "width": 120,
            "nobr": true
        },
        {
            "name": "JingBanRen",
            "dataIndex": "JingBanRen",
            "sortable": false,
            "text": "经办人",
            "index": 32,
            "exist": true,
            "xtype": "string",
            "width": 80,
            "nobr": true
        },
        {
            "name": "ShenPiRen",
            "dataIndex": "ShenPiRen",
            "sortable": false,
            "text": "审批人",
            "index": 34,
            "exist": true,
            "xtype": "string",
            "width": 80,
            "nobr": true
        },
        {
            "name": "FuKuanRen",
            "dataIndex": "FuKuanRen",
            "sortable": false,
            "text": "付款人",
            "index": 36,
            "exist": true,
            "xtype": "string",
            "width": 80,
            "nobr": true
        },
        {
            "name": "ZhuangTai",
            "dataIndex": "ZhuangTai",
            "sortable": false,
            "text": "状态",
            "index": 38,
            "exist": true,
            "xtype": "enum",
            "enum": {
                "name": "Rsd.Faith.Core.ZengZhiShiYongZhuangTai",
                "valueMember": "code",
                "items": [
                    {
                        "code": "DJ",
                        "value": 0,
                        "text": "已登记"
                    },
                    {
                        "code": "RZ",
                        "value": 1,
                        "text": "已入账"
                    }
                ]
            },
            "width": 80,
            "nobr": true
        },
        {
            "name": "Remark",
            "dataIndex": "Remark",
            "sortable": false,
            "text": "备注",
            "index": 200,
            "exist": true,
            "xtype": "string",
            "width": 100,
            "nobr": true
        }
    ],
    /*
     * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    }
});